package com.whfc.fvs.dao;

import com.whfc.fvs.dto.FvsGroupDTO;
import com.whfc.fvs.entity.FvsGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FvsGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(FvsGroup record);

    FvsGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FvsGroup record);

    /**
     * 查找视频设备分组列表
     *
     * @param deptIds
     * @param keyword
     * @return
     */
    List<FvsGroupDTO> selectByDeptId(@Param("deptIds") List<Integer> deptIds,
                                     @Param("keyword") String keyword);

    /**
     * 逻辑删除
     *
     * @param groupId
     */
    void deleteLogic(@Param("groupId") Integer groupId);
}
